package com.hxzy.shop.common.dto.auth.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 功能描述：修改角以权限
 *
 * @author tonneyyy
 */
@Getter
@Setter
@ToString
public class ChangeRoleAuthorityReq {

    @NotNull(message = "角色Id不能为空")
    @ApiModelProperty("角色Id")
    private Long roleId;

    @ApiModelProperty("模块Id数组")
    @NotNull(message = "模块Id数组不能为空")
    private List<Long> moduleIds;
}
